package com.beck;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
//@ConfigurationProperties(prefix = "house")
public class House {
    @Value("${house.name}")
    private String name;
    //@Value("${house.cars}")
    private List<String> cars;
    //@Value("${house.address}")
    private Address address;
}
